<table id="CVEs" class="table table-hover table-striped">
  <thead class="thead-dark">
    <tr>
      <th width="2%"></th>
      <th width="6%">ID</th>
      <th width="3%">CVSS</th>
      <th width="3%">CVSS3</th>
      <th width="60%">Summary</th>
      <th width="11%">Last (major) update</th>
      <th width="11%">Published</th>
    </tr>
  </thead>
  <tbody>
    {% for c in cve['results'] %}
    {% if 'whitelisted' in c %}{%set class="whitelisted"%}{% elif 'blacklisted' in c %}{%set class="blacklisted"%}
    {% else %}{%set class=""%}{% endif %}
      <tr id ="{{ c['id'] }}" class="{{class}}" {{'style=color:'+c['color'] if 'color' in c else ''}}>
        <td>
          {% if 'icon' in c %}
            <i class="{{c['icon']}}"></i>
          {% else %}
            {% if 'whitelisted' in c %}
              <i class="far fa-bookmark"></i>
            {% elif 'blacklisted' in c %}
              <i class="far fa-eye-slash"></i>
            {% endif %}
          {% endif %}
        </td>
        <td data-type="ID">
          <a href="/cve/{{ c['id'] }}">{{ c['id'] }}</a>
          {% if 'reason' in c %}
            <br /><span class="badge badge-success">{{c['reason']}}</span>
          {% endif %}
        </td>
        <td data-type="CVSS" data-value="{{ c['cvss'] }}">
          {{ c['cvss'] }}
        </td>
        <td data-type="CVSS3" data-value="{{ c['cvss3'] }}">
          {{ c['cvss3'] }}
        </td>
        <td data-type="SUMMARY">
          <div rel="tooltip" title="{{ c['summary'] }}">
            {{ c['summary'][:250] }}
          </div>
        </td>
        <td data-type="MODIFIED" data-value="{{ c['Modified'].strftime('%Y/%m/%d') }}">
          {{ c['Modified'].strftime('%Y-%m-%d - %H:%M') }}
        </td>
        <td data-type="PUBLISHED" data-value="{{ c['Published'].strftime('%Y/%m/%d')}}">
          {{ c['Published'].strftime('%Y-%m-%d - %H:%M') }}
        </td>
      </tr>
    {% endfor %}
  </tbody>
</table>
<a href="#" class="select-submit">Mark selected</a>
